<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusMaterialSupplierTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_material_supplier', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('title')->nullable()->comment('供应商名称');
            $table->string('credit_code')->nullable()->comment('统一社会信用代码');
            $table->string('address')->nullable()->comment('地址');
            $table->string('phone')->nullable()->comment('电话');
            $table->string('bank')->nullable()->comment('开户行');
            $table->string('bank_num')->nullable()->comment('账号');
            $table->string('contacts')->nullable()->comment('联系人');
            $table->string('mobile')->nullable()->comment('联系手机号');
            $table->tinyInteger('del_state')->nullable()->comment('删除状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_material_supplier');
    }
}
